const {ipcMain}  = require('electron')
const fs = require('fs')
const path = require('path')
ipcMain.handle('on-getFiles-event', (e,args)=>{
   const file =  fs.readdirSync(path.resolve(__dirname,'../public/upload/'))
    return file
})